package com.typingtutor;

import com.formdev.flatlaf.FlatLightLaf;
import com.typingtutor.db.DatabaseManager;
import com.typingtutor.ui.TypingTutor;

import javax.swing.*;

public class TypingTutorApp {
    public static void main(String[] args) {
        DatabaseManager.createDatabase();
        SwingUtilities.invokeLater(() -> {
            try {
                // 设置 FlatLaf 外观
                UIManager.setLookAndFeel(new FlatLightLaf());
            } catch (UnsupportedLookAndFeelException e) {
                e.printStackTrace();
            }
            new TypingTutor();
        });
    }
}